package com.xcity.game.guild.gevent;

import com.alibaba.fastjson.annotation.JSONField;

import naga.x.game.time.TimeUpdater;

public class GuildEvent {

	@JSONField(name = "0")
	protected int type;
	@JSONField(name = "1")
	protected long source;
	@JSONField(name = "2")
	protected long target;
	@JSONField(name = "3")
	protected long time;
	
	public static int EVENT_TYPE_JOIN = 0;//A加入
	public static int EVENT_TYPE_KICK = 1;//A踢B
	public static int EVENT_TYPE_QUIT = 2;//A退出
	public static int EVENT_TYPE_SET_DUTY_OFFICIAL = 3;//A任命B副会长
	public static int EVENT_TYPE_SET_DUTY_MEMBER = 4;//A降职B成员
	public static int EVENT_TYPE_TRANS = 5;//A转让B
	
	public GuildEvent(){
	}

	public GuildEvent(int type, long sourceId, long targetId){
		this.type = type;
		this.source = sourceId;
		this.target = targetId;
		this.time = TimeUpdater.getInstance().now();
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public long getSource() {
		return source;
	}
	public void setSource(long source) {
		this.source = source;
	}
	public long getTarget() {
		return target;
	}
	public void setTarget(long target) {
		this.target = target;
	}
	public long getTime() {
		return time;
	}
	public void setTime(long time) {
		this.time = time;
	}
}
